<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<jsp:include page="/WEB-INF/jsp/common/_head.jsp"/>
<%@ include file="/WEB-INF/jsp/common/_includes.jsp" %>
<div class="ui grid">
    <div class="row">
        <div class="column">
            <div class="ui two column grid">
                <div class="three wide column">
                    <jsp:include page="/WEB-INF/jsp/common/_sidebar.jsp">
                        <jsp:param name="index" value="2601"/>
                    </jsp:include>
                </div>
                <div id="container" class="thirteen wide column">
                    <ol class="breadcrumb">
						<li><a href="/">后台管理</a></li>
						<li class="active">讨论列表管理</li>
					</ol>
                    <table class="table table-hover">
                        <thead>
                        <tr>
                            <th>ID</th>
                            <th>讨论内容</th>
                            <th>是否匿名</th>
                            <th>讨论者id</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody> 
                        <c:forEach items="${paginate.pageList}" var="Talk">
                            <tr>
                                <td>${Talk.id}</td>
                                <td>${Talk.content}</td>
                                <td>
                                 <c:choose>
											<c:when test="${Talk.anonymous==1}">
												<a href="">匿名</a>
											</c:when>
											<c:when test="${Talk.anonymous==0}">
												<a href="">未匿名</a>
											</c:when>
										</c:choose>
                                </td>
                                <td>${Talk.authorId}</td>
                                <td>
                                	<a class="btn active btn-danger"  	onclick="return confirm('确实要删除吗？')"   href="/talk/${Talk.id}/delete">删除</a>
                           </td>
                            </tr>
                        </c:forEach>
                        </tbody>
                    </table>
                    <div class="page-info clearfix">
                         <jsp:include page="/WEB-INF/jsp/common/_page.jsp"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<jsp:include page="/WEB-INF/jsp/common/_foot.jsp"></jsp:include>
<script type="text/javascript" src="/static/js/reply/list.js"></script>